#ifndef EBNACTIONMSGRECEIVER_H
#define EBNACTIONMSGRECEIVER_H

#include <QObject>
#include <string>
#include <vector>

#include "EbnActionMsgSender.h"

using namespace std;

class CEbnActionMsgReceiver : public QObject
{
    Q_OBJECT
public:
    explicit CEbnActionMsgReceiver(QObject *parent = 0);

    void attachMsgSender (CEbnActionMsgSender * pSender);
    void detachMsgSender (CEbnActionMsgSender * pSender);

    bool hasActionMsgSender(CEbnActionMsgSender * pSender);
    int getActionMsgSenderCount(void);

protected:

    //virtual void update(void);

    //void timerEvent( QTimerEvent *event );

    CEbnActionMsgSender * getActionMsgSender(int i);

signals:

    void postActionMsg(string actionName);


public slots:

    //void receiveTimeout();
    void receiveActionSelectedSignal(string actionName);

private:

    vector<CEbnActionMsgSender *> mSenderList;

};

#endif // EBNACTIONMSGRECEIVER_H
